/**
 * Created by cc
 * Description:
 * User: CZH
 * Date: 2022-09-08
 * Time: 12:48
 */
public class Test {

    public static void main(String[] args) {
        int a = 10; //01010
        int b = 20; //10100
        System.out.println(a ^ b);  //11110
    }

    public static void main19(String[] args) {
        int a = 10;
        int b = 20;
        int c = 0xf;
        System.out.println(a & b);
        System.out.println(a | b);
        System.out.printf("%d\n", ~c);
    }

    public static void main18(String[] args) {
        byte a = 10;
        byte b = 20;
//        byte c = a + b;
    }

    public static void main17(String[] args) {
        int a = 0;
        double b = 10.5;
        a = (int)b;
    }

    public static void main16(String[] args) {
//        int a = 10;
//        long b = 20;
//        a = b;
//        b = a;
    }

    public static void main15(String[] args) {
        {
            int x = 10;
            System.out.println(x);
        }
//        System.out.println(x);
    }

    public static void main14(String[] args) {
        String str = "abc";
        int a = 10;
        int b = 20;
        String ret = a + b + str;
        System.out.println(ret);
    }

    public static void main13(String[] args) {
        String a = "world";
        String b = "hello";
        String c = b + a;
        System.out.println(b + a);
        System.out.println(c);
    }

    public static void main12(String[] args) {
        String name = "zhangsan";
        System.out.println(name);
    }

    public static void main11(String[] args) {
        boolean value = true;
        System.out.println(value);
    }

    public static void main10(String[] args) {
        short value = 0;
        System.out.println(value);
    }

    public static void main9(String[] args) {
        byte value = 0;
        System.out.println(value);
    }

    public static void main8(String[] args) {
        char ch = '荷';
        System.out.println(ch);
    }

    public static void main7(String[] args) {
        float num = 1.0f;
        System.out.println(num);
    }

    public static void main6(String[] args) {
        double num = 1.1;
        System.out.println(num * num);
    }

    public static void main5(String[] args) {
        int a = 1;
        int b = 2;
        System.out.println(a / b);
    }

    public static void main4(String[] args) {
        double num = 1.0;
        System.out.println(num);
    }

    public static void main3(String[] args) {
//        long num = 10L; //定义长整型变量，初始值要写作10L，表示这是个长整型。
//        System.out.println(num);
        System.out.println(Long.MAX_VALUE);
        System.out.println(Long.MIN_VALUE);
    }

    //计算int类型大小
    public static void main2(String[] args) {
        System.out.println(Integer.MAX_VALUE + 1);
        System.out.println(Integer.MIN_VALUE - 1);
    }

    //Java第一个程序
    public static void main1(String[] args) {
        System.out.println("hello world!");
    }
}
